Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

301
Views
(Retool) Make a ".txt" file to GCS but I got the error "Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded."

On Retool, I'm trying to make a ".txt" file with some words to Google Cloud Storage(GCS) but I got this error.

enter image description here

makeTXTFile: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.

This is the query settings on Retool to make a ".txt" file to GCS:

enter image description here

Action type and Content-Type:

enter image description here

Upload file name:

enter image description here

Upload data:

enter image description here

Lemon
Banana
Pineapple

And I want the ".txt" file with a fruit name in each row as below:

enter image description here

Are there any ways to make the ".txt" file from Retool to GCS without the error?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You need to encode the string in Base64 with "btoa()" method and the string needs to have "\n" for line break:

enter image description here

{{ btoa("Lemon\nBanana\nPineapple") }}

Then, you can make the ".txt" file with a fruit name in each row:

enter image description here

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!